package com.gator.desig_mode.facade;

/**
 * @author 何章怀晓 hezhanghuaixiao
 * @version V1.0
 * @desc
 */
public class FacadeHome {

  private DVDPlayer dvdPlayer = DVDPlayer.getInstance();
  private Computer computer = Computer.getInstance();

  public FacadeHome(){

  }

  public void open(){
    dvdPlayer.open();
    computer.open();
  }

  public void play(){
    dvdPlayer.play();
    computer.play();
  }

  public void close(){
    dvdPlayer.close();
    computer.close();
  }

}
